package com.kuang.demo.controller.wx;

import com.kuang.demo.bean.BaseRespVo;
import com.kuang.demo.bo.zzywx.home.ReHome;
import com.kuang.demo.service.wx.WXHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/home")
public class WXHomeController {
    @Autowired
    WXHomeService wxHomeService;

    @RequestMapping("/index")
    public BaseRespVo zzy1(){
        ReHome reHome = wxHomeService.selectIndex();

        return BaseRespVo.ok(reHome);
    }
}
